DialogViewModelBase.cs
Language: C#
Last Modified: 2020-06-27 1:58:36 PM UTC
File Size: 967 bytes
Last Modified: 2020-06-27 1:58:36 PM UTC
File Size: 967 bytes
http://www.penguinstew.ca/example/MVVMbase/ViewModelBase/DialogViewModelBase.cs
���usingSystem;
namespacePenguinMVVMBaseViewModelBase
{
<summary>
AbstractbaseclassforwindowviewModels
<summary>
publicclassDialogViewModelBase:WindowViewModelBaseIDialogViewModel
{
regionIDialogViewModel
<summary>
Eventraisedtorequestthedialogbeclosed
<summary>
publiceventEventHandler<RequestDialogCloseArgs>DialogCloseRequested;
<summary>
MethodtoraisetheDialogCloseRequestedevent
<summary>
<paramname=result>Theresulttoclosethedialogwith<param>
protectedvoidRequestCloseboolresult
{
EventHandler<RequestDialogCloseArgs>handler=DialogCloseRequested;
ifhandler=null
{
handlerthisnewRequestDialogCloseArgsresult;
}
}
endregion
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32